<!DOCTYPE html>
<html lang="en">
<head>
	{include file="common/header" /}
	<title>拼场</title>
</head>
<body>
	<div class="container margin-top">
		<div class="row">
			<div class="col-md-offset-1 col-md-10 col-xs-10">
				<img src="{$Think.STATIC_PATH}/image/nyx.jpg" alt="" width="100%">
			</div>
			<div class="col-md-1 col-xs-2 margin">
				<a href="{:url('Index/index')}">返回</a>
			</div>
		</div>
		<div class="row margin-top">
			<div class="col-md-offset-1 col-md-10 col-xs-12">
				<p class="text-center">
					<strong>我加入的拼场</strong>
				</p>
				<hr style="border:0;background-color:#ff0000;height:1px;margin: 5px">
			</div>
		</div>
		<div class="row margin-top padding-bottom">
			<div class="col-md-offset-2 col-md-8 col-xs-12">
				<div class="panel-group" id="accordion">
					{volist name="common" id="co"}
					    <div class="panel panel-default">
		                	<div class="row margin-top margin-left">
								<div class="col-xs-7 col-ms-7">
									<p>参与人:{$co.now}/{$co.max} </p>
									<p>时长:{$co.time}</p>
									<p>时间:{$co.begin}</p> 
									<p>QQ群:{$co.qq}</p>
								</div>
								<div class="col-xs-4 col-ms-4 margin">
									<p class="text-right">
										<a href="{:url('Together/cancel')}?id={$co.id}">
											<button class="btn-block btn-xs btn-info margin-top">
												退出拼场
											</button>
										</a>
										<a data-toggle="collapse" data-parent="#accordion" href="#collapse{$co.id}">	
											<button class="btn-block btn-xs btn-info margin-top">
												查看拼场人及备注
											</button>
										</a>
										<button class="btn-block btn-xs btn-info margin-top" onclick="copy_join({$co.id})">
											复制链接
										</button>
									</p>
								</div>
							</div>
					        <div id="collapse{$co.id}" class="panel-collapse collapse">
					            <div class="panel-body">
			                		发起人:{$co.fqr}/
			                		<span id="wx{$co.id}">
			                			{$co.wx}
			                		</span>
			                		/
			                		<span id="qq{$co.id}">
			                			{$co.fqq}
			                		</span>			                	
				                	<button class="btn-xs btn-info" onclick="copy_wx({$co.id})">
				                		复制微信
				                	</button>
				                	<button class="btn-xs btn-info" onclick="copy_qq({$co.id})">
				                		复制qq
				                	</button><br>
					            	拼场人:
					            	{volist name="people" id="p"}
					            		{if $p.cid==$co.id}
					            			{$p.xm}/
					            		{/if}
					            	{/volist}<br>
					                备注:{$co.tips}
					            </div>
					        </div>
					    </div>
				    {/volist}
				</div>
			</div>
		</div>
	</div>
	{include file="common/footer" /}
</body>
</html>